package com.atguigu.userprofile.MysqlUtil;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.ResourceBundle;

public class MyPropsUtil {
    public static void main(String[] args) throws IOException {
//        Properties properties = new Properties();
//        InputStream in =
//                MysqlUtil.class.getClassLoader().getResourceAsStream("config.properties");
//        properties.load(in);
//        String url=properties.getProperty("mysql.url");
//        System.out.println(url);
    }

    private static ResourceBundle buudle=ResourceBundle.getBundle("config");
    public static String get(String key){
        return buudle.getString(key);
    }
}
